package com.kingdee.eas.custom.bscc.bscchelper;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.eas.common.EASBizException;
import java.math.BigDecimal;
import java.util.Map;
import com.kingdee.jdbc.rowset.IRowSet;
import java.util.Date;



public abstract class AbstractBsccHeplerFacadeControllerBean extends AbstractBizControllerBean implements BsccHeplerFacadeController
{
    protected AbstractBsccHeplerFacadeControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("14D9483B");
    }

    public IRowSet getHaveSame(Context ctx, Date nowDate, String table, String unitID, String billID) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("156a85fe-45a4-440c-95c5-e355d2d5242f"), new Object[]{ctx, nowDate, table, unitID, billID});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            IRowSet retValue = (IRowSet)_getHaveSame(ctx, nowDate, table, unitID, billID);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (IRowSet)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IRowSet _getHaveSame(Context ctx, Date nowDate, String table, String unitID, String billID) throws BOSException
    {    	
        return null;
    }

    public Map getDestNumber(Context ctx, String srcEntityID, String destEntityID, String tableNmae) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("95d0250c-c831-4f62-9085-1ccfff52774e"), new Object[]{ctx, srcEntityID, destEntityID, tableNmae});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            Map retValue = (Map)_getDestNumber(ctx, srcEntityID, destEntityID, tableNmae);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (Map)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected Map _getDestNumber(Context ctx, String srcEntityID, String destEntityID, String tableNmae) throws BOSException
    {    	
        return null;
    }

    public BigDecimal getBackAmount(Context ctx, String jkbillID, String billID) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("919b0f27-e48f-4c49-8283-79a06ef67e27"), new Object[]{ctx, jkbillID, billID});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            BigDecimal retValue = (BigDecimal)_getBackAmount(ctx, jkbillID, billID);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (BigDecimal)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected BigDecimal _getBackAmount(Context ctx, String jkbillID, String billID) throws BOSException
    {    	
        return null;
    }

    public Date getCalDate(Context ctx, String jkbillID, String type) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("09d596f7-cdd2-4ccb-aa7e-e534d5801c23"), new Object[]{ctx, jkbillID, type});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            Date retValue = (Date)_getCalDate(ctx, jkbillID, type);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (Date)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected Date _getCalDate(Context ctx, String jkbillID, String type) throws BOSException
    {    	
        return null;
    }

    public BigDecimal getInnerBalance(Context ctx, String innerAccountID) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("fbf2c028-2b36-4322-87c7-0e76b18582d2"), new Object[]{ctx, innerAccountID});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            BigDecimal retValue = (BigDecimal)_getInnerBalance(ctx, innerAccountID);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (BigDecimal)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected BigDecimal _getInnerBalance(Context ctx, String innerAccountID) throws BOSException
    {    	
        return null;
    }

    public BigDecimal getPlanAmount(Context ctx, String projectID, String contractID, String planID) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("6f497d59-acd6-4ace-b7e0-61e9bc5a7410"), new Object[]{ctx, projectID, contractID, planID});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            BigDecimal retValue = (BigDecimal)_getPlanAmount(ctx, projectID, contractID, planID);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (BigDecimal)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected BigDecimal _getPlanAmount(Context ctx, String projectID, String contractID, String planID) throws BOSException
    {    	
        return null;
    }

    public BigDecimal getPayAmount(Context ctx, String projectID, String planID) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("160c3bfa-bd58-40c4-b34c-80725a8a4688"), new Object[]{ctx, projectID, planID});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            BigDecimal retValue = (BigDecimal)_getPayAmount(ctx, projectID, planID);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (BigDecimal)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected BigDecimal _getPayAmount(Context ctx, String projectID, String planID) throws BOSException
    {    	
        return null;
    }

    public BigDecimal getUpRecAmount(Context ctx, String contractID) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("4e915d03-5200-4ba0-80cd-0aa82e10322d"), new Object[]{ctx, contractID});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            BigDecimal retValue = (BigDecimal)_getUpRecAmount(ctx, contractID);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (BigDecimal)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected BigDecimal _getUpRecAmount(Context ctx, String contractID) throws BOSException
    {    	
        return null;
    }

    public BigDecimal getDnPayAmount(Context ctx, String contractID) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("0a5cb70c-c1fe-4879-a1c2-d9e271412286"), new Object[]{ctx, contractID});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            BigDecimal retValue = (BigDecimal)_getDnPayAmount(ctx, contractID);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (BigDecimal)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected BigDecimal _getDnPayAmount(Context ctx, String contractID) throws BOSException
    {    	
        return null;
    }

    public Map getCompanyMapID(Context ctx, String companyID) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("caf21900-ab99-4d7c-89f5-c65f2526804a"), new Object[]{ctx, companyID});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            Map retValue = (Map)_getCompanyMapID(ctx, companyID);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (Map)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected Map _getCompanyMapID(Context ctx, String companyID) throws BOSException, EASBizException
    {    	
        return null;
    }

    public Object getWorkFlowPerson(Context ctx, String postionNum, String conpamyID) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("f00709f7-bb46-4d6c-8488-45b606eacaad"), new Object[]{ctx, postionNum, conpamyID});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            Object retValue = (Object)_getWorkFlowPerson(ctx, postionNum, conpamyID);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (Object)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected Object _getWorkFlowPerson(Context ctx, String postionNum, String conpamyID) throws BOSException
    {    	
        return null;
    }

    public Map getMaterialIn(Context ctx, String downContractID, String materiaID) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("f2f78362-c73f-4684-aca1-db87192ff618"), new Object[]{ctx, downContractID, materiaID});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            Map retValue = (Map)_getMaterialIn(ctx, downContractID, materiaID);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (Map)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected Map _getMaterialIn(Context ctx, String downContractID, String materiaID) throws BOSException
    {    	
        return null;
    }

    public Map getMaterialOut(Context ctx, String downContractID, String materiaID) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("cbd5108b-58d6-4352-97f7-93347ffd04cd"), new Object[]{ctx, downContractID, materiaID});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            Map retValue = (Map)_getMaterialOut(ctx, downContractID, materiaID);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (Map)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected Map _getMaterialOut(Context ctx, String downContractID, String materiaID) throws BOSException
    {    	
        return null;
    }

    public BigDecimal getCaPlanAmount(Context ctx, String projectID, String planID, Date yearMonth) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("8b11b76b-ea40-48ac-9cb5-2fd15b81b25b"), new Object[]{ctx, projectID, planID, yearMonth});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            BigDecimal retValue = (BigDecimal)_getCaPlanAmount(ctx, projectID, planID, yearMonth);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (BigDecimal)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected BigDecimal _getCaPlanAmount(Context ctx, String projectID, String planID, Date yearMonth) throws BOSException
    {    	
        return null;
    }

    public BigDecimal getCaPayAmount(Context ctx, String projectID, String planID, Date yearMonth) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("ea8636e7-8ced-4edd-af35-3c7fd381a29f"), new Object[]{ctx, projectID, planID, yearMonth});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            BigDecimal retValue = (BigDecimal)_getCaPayAmount(ctx, projectID, planID, yearMonth);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (BigDecimal)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected BigDecimal _getCaPayAmount(Context ctx, String projectID, String planID, Date yearMonth) throws BOSException
    {    	
        return null;
    }

}